import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const router = new VueRouter({
    mode: "history", //history模式路由
    routes: [{
            path: "/",
            redirect: "/home",
        }, {
            path: "/home",
            name: "Home",
            // meta: {
            //     showFooter: false,
            // },
            component: () =>
                import ("../pages/home"),
        },
        {
            path: "/playlist",
            name: "Playlist",
            // meta: {
            //     showFooter: false,
            // },
            component: () =>
                import ("../pages/playlist"),
        }, {
            path: "/mysong",
            name: "Mysong",
            // meta: {
            //     showFooter: false,
            // },
            component: () =>
                import ("../pages/mysong"),
        },

    ],
});

export default router;